@extends('home.base.index')
@section('content')
    <!--内容开始-->
    <div class="personal w1200">
        <div class="personal-left f-l">
            <div class="personal-l-tit">
                <h3>个人中心</h3>
            </div>
            <ul>
                   <li class="current-li per-li1"><a href="#">消息中心<span>></span></a></li>
                <li class="per-li2"><a href="{{url('/home/userinfo')}}">个人资料<span>></span></a></li>
                <li class="per-li3"><a href="/home/userorder">我的订单<span>></span></a></li>
                <li class="per-li6"><a href="/home/address">管理收货地址<span>></span></a></li>
                <li class="per-li7"><a href="/home/interest">商品收藏<span></span></a></li>
                <li class="per-li8"><a href="/home/okconfirm">确认收货<span>></span></a></li>
                <li class="per-li9"><a href="#">浏览记录<span>></span></a></li>
                <li class="per-li10"><a href="#">会员积分<span>></span></a></li>
            </ul>
        </div>
        <div class="order-right f-r">
            <div class="order-hd">
                <dl class="f-l">
                    <dt>
                        <a href="#"><img src="images/data-tu2.gif" /></a>
                    </dt>
                    <dd>
                        <h3><a href="#">RH了</a></h3>
                        <p>zhao601884596</p>
                    </dd>
                    <div style="clear:both;"></div>
                </dl>
                <div style="clear:both;"></div>
            </div>
            <div class="order-md">
                <div class="md-tit">
                    <h3>我的收藏</h3>
                </div>
                <div class="md-hd">
                    <P class="md-p1"></input><span</span></P>
                    <p class="md-p2">商品信息</p>
                    <p class="md-p3">单价（元）</p>
                    <p class="md-p6">操作</p>
                </div>
                <form method="post" name="userorder" action="{{ url('/home/userorder') }}">
                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
                    <input type="hidden" name="_method" value="DELETE">
                </form>
                <div class="md-info">
                    <div class="dai">
                        </input><span></span>
                    </div>
                   @foreach($list as $v)
                    <div class="dai-con">
                        <dl class="dl1">
                            <dt>
                                <a href="#" class="f-l"><img src="{{ asset('images') }}/{{ $v->picture }}" width="80px" /></a>
                                <div style="clear:both;"></div>
                            </dt>
                            <dd>
                                <p>{{ $v->description }}</p>
                            </dd>
                            <div style="clear:both;"></div>
                        </dl>
                        <div class="dai-right f-l">
                            <p class="d-r-p3">{{ $v->lower_price }}￥</p>
                            <p class="d-r-p3" style="margin-top:20px;" id="{{ $v->id }}"><a href="javascript:doDel({{ $v->id }})">移出收藏夹</a></p>
                        </div>
                        <div style="clear:both;"></div>
                    </div>
                    @endforeach
                </div>
                <!--分页-->
                <div class="paging">
                   {{ $list->appends($where)->links() }}
                </div>
                <br><br>
            </div>
            
        </div>
        <div style="clear:both;"></div>
    </div>
    <script type="text/javascript">
        function doDel(id)
        {
             if(confirm('确定要删除吗？')){
                var form = document.userorder;
                form.action = '/home/interest/'+id;
                form.submit();
            }
        }
        $('.pagination').find('li').css({"font-size":"23px","background":"#63a61d none repeat scroll 0 0","height": "35px","line-height":"35px","width": "41px","float":"left"});
    </script>
    
    <!--底部一块-->
   @stop